﻿using UnityEngine;

public class FinishPoint : MonoBehaviour {

    public void OnTriggerEnter2D(Collider2D collision)
    {
        Debug.Log("hose t in");
        Debug.Log("tag " + collision.tag);
        if(collision.tag == "Player")
        {
            GameController.Instance.Finish();
        }
    }

    public void OnCollisionEnter2D(Collision2D collision)
    {
        Debug.Log("hose c in");
    }
}
